package lab02.test06;

/**
 * Created by 123 on 2017/10/15.
 */
public class Circle {

    //1 属性
    double rahius;
    double area;
    double perimeter;


    //2行为
    double area() {
        double area;
        area = 3.14 * this.rahius *this.rahius ;
        return area;
    }

    double perimeter() {
        double perimeter;
        perimeter = 6.28 * this.rahius;
        return perimeter;

    }
}
